package com.ybf.api.entity;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author ybf
 * @since 2024-09-26
 */
@Data
public class Role {

    private Long id;

    @NotBlank(message = "角色名不能为空")
    private String roleName;

    @Schema(name="简介")
    private String intro;

    @Schema(name="状态：0、不可用 1、可用  -1、删除")
    private String status = "1";

    @Schema(name="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @Schema(name="更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;
}
